package com.competition.prediction.entity;

import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

@Data
public class UserBet {
    private Long id;
    private Long userId;
    private Long competitionId;
    private Long betOptionId;
    private Long betAmount;
    private Long potentialReturn;
    private Long actualReturn;
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime betTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime settleTime;
}